package cn.zhaoyan.dao;

import cn.zhaoyan.bean.Customer;

import java.util.List;
import java.util.Map;

public interface Customerdao {
    public List<Customer> customerdao();
    void daoQuery(String id);

    void batchDelete(String[] select);

    Customer selectdao(Customer customer);

    void insertdao(Customer customer);

    Customer updatedao( String id );

    void updatedao1(Customer customer);

    /**
     * 查询总条数
     * @return
     * @param parameterMap
     */
    int getCustomerCount(Map<String, String[]> parameterMap);

    /**
     * 查询分页显示的数据
     * @param startIndex
     * @param pageSize
     * @param parameterMap
     * @return
     */
    List<Customer> getCustomerLiset(int startIndex, int pageSize, Map<String, String[]> parameterMap);
}
